<template>
  <div id="app">
    <router-view v-if="user.yb_userid"/>
  </div>
</template>

<script>
export default {
  computed: {
    user () {
      const info = this.$store.state.userInfo
      if (info.yb_collegename === '学生工作部（处）' || !info.yb_collegename) {
        info.yb_collegename = '云南农业大学'
      }
      return info
    }
  }
}
</script>

<style>
  :root {
    height: 100%;
  }

  #app {
    height: 100%;
  }

</style>
